lib/commit: Drop some conditionals/clarify code in content path
authorColin Walters <walters@verbum.org>
Wed, 7 Jun 2017 17:56:47 +0000 (13:56 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 12 Jun 2017 14:24:22 +0000 (14:24 +0000)
commit18ae8e5267f35394faa41cdeadd5125962ba9417
tree9d58ec66c3868c9e4ee4480db5d6acf9dc5abe42
parentaed8a6b09aecd5b71536148bae83bb29661c209c
lib/commit: Drop some conditionals/clarify code in content path

Both callers of `commit_loose_object_trusted()` were passing
`OSTREE_OBJECT_TYPE_FILE`, so drop that parameter.  This in turn
allows us to drop lots of checking of that inside the function.

Add a doc comment, and rename to `commit_loose_content_object()` for clarity.

Closes: #914
Approved by: alexlarsson
src/libostree/ostree-repo-commit.c